package org.wk.user.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

/**
 * 
 * @ClassName : LoginToken
 * @Package ：org.wk.user.domain
 * @Author df.w
 * @Create Time ：2018年5月2日 下午4:12:18
 * @Description : 登录识别码
 */
@Entity(name = "org.wk.user.domain.LoginToken")
@Table(name = "s_login_token")
public class LoginToken extends BaseEntity {
	/**
	 * @Fields serialVersionUID: long
	 * @Desc TODO:
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;

	/**
	 * @Fields token: String
	 * @Desc TODO: 登录识别码
	 */
	@Column(unique = true)
	private String token;

	/**
	 * @Fields userId: String
	 * @Desc TODO: 用户ID
	 */
	@Column
	private String userId;
	/**
	 * @Fields alias: String
	 * @Desc TODO: 用户昵称
	 */
	@Column
	private String nickName;
	/**
	 * @Fields photo: String
	 * @Desc TODO: 用户头像
	 */
	@Column
	private String headSculpture;

	/**
	 * @Fields expireTime: Date
	 * @Desc TODO: 过期时间
	 */
	@Column
	private Date expireTime;

	/**
	 * @return the id
	 */
	
	public String getId() {
		return id;
	}

	
	/**
	 * @param id 要设置的 id
	 */
	
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the token
	 */
	
	public String getToken() {
		return token;
	}

	
	/**
	 * @param token 要设置的 token
	 */
	
	public void setToken(String token) {
		this.token = token;
	}

	/**
	 * @return the userId
	 */
	
	public String getUserId() {
		return userId;
	}

	
	/**
	 * @param userId 要设置的 userId
	 */
	
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * @return the nickName
	 */
	
	public String getNickName() {
		return nickName;
	}

	
	/**
	 * @param nickName 要设置的 nickName
	 */
	
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return the expireTime
	 */
	
	public Date getExpireTime() {
		return expireTime;
	}

	
	/**
	 * @param expireTime 要设置的 expireTime
	 */
	
	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}


	/**
	 * @return the headSculpture
	 */
	
	public String getHeadSculpture() {
		return headSculpture;
	}


	
	/**
	 * @param headSculpture 要设置的 headSculpture
	 */
	
	public void setHeadSculpture(String headSculpture) {
		this.headSculpture = headSculpture;
	}

	
}
